/* 企业招聘页面专用样式 */

/* 基础布局 */
:root {
    --primary: #3a86ff;
    --secondary: #5a95ff;
    --dark-blue: #2c3e50;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray);
}

.home-btn {
    background-color: var(--gray);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* 主体布局 */
.main-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* 左侧功能导航区 */
.sidebar {
    width: 200px;
    background-color: var(--primary);
    color: white;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar li:hover {
    background-color: var(--secondary);
}

/* 右侧内容区 */
.content {
    flex: 1;
    padding: 20px;
    background-color: white;
}

/* 底部 */
.footer {
    background-color: var(--dark-blue);
    color: white;
    text-align: center;
    padding: 10px;
}

.footer a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* 职位发布表单 */
.job-form {
    max-width: 800px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-btn {
    background-color: var(--gray);
    color: white;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

/* 职位状态标签样式 */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-draft { background-color: #ffeeba; color: #856404; }
.status-published { background-color: #c3e6cb; color: #155724; }
.status-offline { background-color: #d1ecf1; color: #0c5460; }

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
}

th {
    background-color: var(--light-gray);
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.job-name {
    font-weight: bold;
    color: var(--dark-blue);
    cursor: pointer;
}

.job-status {
    font-weight: bold;
}

.status-active { color: var(--primary); }
.status-inactive { color: var(--warning); }
.status-deleted { color: var(--danger); }

.action-buttons {
    display: none;
}

tr:hover .action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    color: white;
    font-size: 12px;
}

.edit-btn { background-color: var(--gray); }
.delete-btn { background-color: var(--danger); }
.toggle-btn { background-color: var(--warning); }

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.page-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
}

.page-btn.active {
    background-color: var(--primary);
    color: white;
}

/* 职位管理模块布局 */
.job-management-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.inner-sidebar {
    width: 150px;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
}

.inner-sidebar ul {
    list-style-type: none;
    padding: 0;
}

.inner-sidebar li {
    padding: 10px 5px;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 5px;
}

.inner-sidebar li:hover, .inner-sidebar li.active {
    background-color: var(--primary);
    color: white;
}

.main-content {
    flex: 1;
}

.search-filter {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter input, .search-filter select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

/* 统计卡片样式 */
.stats-sidebar {
    width: 250px;
}

.stat-card {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.stat-card h3 {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-blue);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
}

.form-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.form-section h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}